<?php
define('IN_PHPSCUP','1');
define('ROOT_PATH', dirname(__FILE__));



include(ROOT_PATH . '/scupcore/SCup.php');


//定义配置信息 
require(ROOT_PATH . '/data/db.config.php');
require(ROOT_PATH . '/data/config.inc.php');

unset($SCup);
$SCup     = new SCup(array(
    'SCup_name'   =>  'scup',
    'default_app'   =>  'default',
    'default_act'   =>  'index',
    'app_root'      =>  ROOT_PATH . '/scup/app',
	'view_root'      =>  ROOT_PATH . '/scup/view',
	'model_root'      =>  ROOT_PATH . '/scup/model',
	'filter_root'      =>  ROOT_PATH . '/scup/filter',
	'compiled_root'      =>  ROOT_PATH . '/temp/compiled/scup',
	'caches_root'      =>  ROOT_PATH . '/temp/caches/scup',
	'user_power_file' =>  ROOT_PATH . '/data/power/',
	'core_libs' =>  array(
        ROOT_PATH . '/scupcore/model.base.php',
        ROOT_PATH . '/scupcore/view.base.php',
        ROOT_PATH . '/scupcore/app.base.php',
        ROOT_PATH . '/scupcore/message.base.php',
        ROOT_PATH . '/scupcore/filter.base.php'
        ),
    'external_libs' =>  array(
        ROOT_PATH . '/lib/user.power.lib.php',
		ROOT_PATH . '/lib/function.lib.php',
		ROOT_PATH . '/lib/languages.lib.php',	
        )
));

$SCup->run();

?>